package test.digester;

public class Office {
    private Address address;
    private String description;
    public Office() {
        System.out.println("创建Office");
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        System.out.println("设置Office的description: " + description);
        this.description = description;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        System.out.println("设置Office的address: " + address);
        this.address = address;
    }

    @Override
    public String toString() {
        return "Office{" +
                "address=" + address +
                ", description='" + description + '\'' +
                '}';
    }
}
